package com.zhao.complier.bean;

public class FourTemple {

	private String result;
	private String op;
	private String ag1;
	private String ag2;

	public FourTemple(String result, String op, String ag1, String ag2) {
		super();
		this.result = result;
		
		
		if (op == null)
			op = "";

		if (ag1 == null) {
			ag1 = "";
		}

		if (ag2 == null)
			ag2 = "";
		this.ag1 = ag1;
		this.op = op;
		this.ag2 = ag2;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getOp() {
		return op;
	}

	public void setOp(String op) {
		this.op = op;
	}

	public String getAg1() {
		return ag1;
	}

	public void setAg1(String ag1) {
		this.ag1 = ag1;
	}

	public String getAg2() {
		return ag2;
	}

	public void setAg2(String ag2) {
		this.ag2 = ag2;
	}

	@Override
	public String toString() {
		return "[" + result + " = " + ag1 + " " + op + " " + ag2 + "]";
	}

}
